filename = 'learning_python.txt'

with open(filename) as file_object:
    print(file_object.read())

print("---------------------------")

with open(filename) as file_object:
    lines = ''
    for line in file_object.readlines():
        lines += line
    print(lines)

print("----------------------------")

with open(filename) as file_object:
    learns = file_object.readlines()

print(learns)
for learn in learns:
    learn.replace('Python', 'C')
    print("===========")
    print(learn.rstrip())
